<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>each</title>
</head>
<body>
<table>
    <thead>
    <tr>
        <td>信息</td>
        <td>用户编号</td>
        <td>用户姓名</td>
        <td>用户邮件</td>
        <td>用户年龄</td>
        <td>奇偶行</td>
    </tr>
    </thead>
    <tbody>
    <tr th:each="s,loopstatus: ${stu}">
        <td th:text="${loopstatus.count} +'/' + ${loopstatus.size}"></td>
        <td th:text="${s.id}"></td>
        <td th:text="${s.name}"></td>
        <td th:text="${s.email}"></td>
        <td th:text="${s.age}"></td>
        <td th:text="${loopstatus.odd ? '奇数行':'偶数行'}"></td>
    </tr>
    </tbody>
</table>
</body>
</html>